package cn.jiyun.service;

import cn.jiyun.entity.Paper;
import cn.jiyun.entity.Quest;
import cn.jiyun.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author weiyuanhang
 * @data: 2023/8/29 002911:24
 * @Package cn.jiyun.service
 * @email 3185757326@qq.com
 */
@FeignClient(value = "day09paper")
public interface PaperFeignService {
    @GetMapping("/paper/findByPaperQuest")
    public Result findByPaperQuest(@RequestParam("pid") Integer  pid);
    @GetMapping("/paper/findByPaper")
    public List<Paper> findByPaper();
    @PostMapping("/paper/findByAdd")
    public Result add(@RequestBody Quest quest);
}
